<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>输入数据</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<script src="js/InputTool.js"></script>
	<script type="text/javascript">
		
	</script>
  </head>
  
  <body onload="proLoad();">
    <table>
    	<tr>
    		<td></td>
    		<td><input name="numinput" id="numinput" value="1" /></td>
    		<td>
    			<select name="unitsel">
    				<option value="1000">秒</option>
    				<option value="60000">分</option>
    				<option value="3600000">时</option>
    				<option value="86400000">天</option>
    				<option value="2592000000">月</option>
    				<option value="31536000000">年</option>
    			</select>
    		</td>
    		<td></td>
    	</tr>
    	<tr>
    		<td colspan="6" align="center">
    			<input type='button' onclick="returnTime()" value="确定" >&nbsp;
    			<input type='button' onclick="clearTime()" value="取消" >
    		</td>
    	</tr>
    </table>
    
  </body>
</html>
<script>
	function proLoad(){
	
	}
	function returnTime(){
		var rtnObj = new Object();
				
				
				var rs=document.all.numinput.value
				if(!rs){
					//alert('');
				}
				var loopType=getSelectValue(document.all.unitsel);
				rtnObj.result =rs*loopType;
	
				returnValue = rtnObj;
				window.close();
	}
function clearTime(){
	
		window.close();
}
</script>